package com.example.demo.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Hsu琛君珩
 * @ClassName:HelloController
 * @date 2023-11-22
 * @apiNote
 * @Version: v1.0
 */

@RequestMapping("/say")
@RestController
public class HelloController {
    @RequestMapping(value="/sayhi",method = RequestMethod.GET)
    public String sayHi(){
        return "hi,world";
    }
    @RequestMapping("/sayhello")
    public String sayHello(){
        return "hello,world";
    }
    @GetMapping("/saybye")
    public String sayBye(){
        return "bye,world";
    }
}
